# 基础镜像
FROM kcr.kmcloud.kingmed.idc/library/paasjdk:8u332

# author
MAINTAINER crm
#环境变量
ENV WORK_HOME /home/crm
# 挂载目录
VOLUME $WORK_HOME
# 创建目录
RUN mkdir -p $WORK_HOME
RUN mkdir -p /data
# 指定路径
WORKDIR $WORK_HOME
# 复制jar文件到路径
COPY ./kmss-admin/target/kmss-admin.jar $WORK_HOME/kmss-admin.jar

RUN chown -R 1000:3000 $WORK_HOME
RUN chown -R 1000:3000 /data

# 指定运行用户和组
USER 1000:3000
# 启动网关服务
ENTRYPOINT ["java","-Dspring.profiles.active = ci","-jar","kmss-admin.jar"]
